package com.example.helloword.utli;

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class JsoupUtli {




    public <T> void getBean(T t) {

    }

    /**
     * 获取Element节点属性值
     * @param element
     * @param property
     * @return
     */

    public static String getPropertyValue(Elements element, String property) {
        if (property.equals("text")) {
            return element.text();
        } else {
            return element.attr(property);
        }

    }


}
